package com.test.ssh.entities;

import lombok.Data;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author liuziyang
 * @create 2018-10-07 19:01
 */
@Data
public class Employee {
    private Integer id;
    /**
     * 不能被修改
     */
    private String lastName;
    private String email;
    /**
     * 前端传入的是string类型，所以需要注意转换
     */
    private Date birth;
    /**
     * 不能修改
     */
    private Date createTime;
    /**
     * 单向n-1的关联关系
     */
    private Department department;
}
